<?php 
/* SVN FILE: $Id$ */
/* Quarto Test cases generated on: 2009-10-25 02:35:34 : 1256438134*/
App::import('Model', 'Quarto');

class QuartoTestCase extends CakeTestCase {
	var $Quarto = null;
	var $fixtures = array('app.quarto', 'app.estabelecimento', 'app.categoria', 'app.reserva');

	function startTest() {
		$this->Quarto =& ClassRegistry::init('Quarto');
	}

	function testQuartoInstance() {
		$this->assertTrue(is_a($this->Quarto, 'Quarto'));
	}

	function testQuartoFind() {
		$this->Quarto->recursive = -1;
		$results = $this->Quarto->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Quarto' => array(
			'id'  => 1,
			'numero'  => 'Lorem ipsum dolor sit amet',
			'andar'  => 1,
			'observacao'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'estabelecimento_id'  => 1,
			'categoria_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>